package fsoft.com.vn.directory.service;

import fsoft.com.vn.directory.dao.BusinessDAO;
import fsoft.com.vn.directory.form.Business;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
public class BusinessServiceImpl implements BusinessService {

	@Autowired
	private BusinessDAO businessDAO;
	

	@Transactional
	public List<Business> listBusiness(int page) {

		return businessDAO.listBusiness(page);
	}


	public List<Business> search(String businessname, String siccode) {
	 return businessDAO.search(businessname,siccode);
	}



}
